//
//  LMCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 liman. All rights reserved.
//

#import "LMCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@interface LMCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation LMCollectionViewCell

- (void)awakeFromNib {

}
-(void)setModel:(LMHomeModel *)model{
    
    if (_model != model) {
        _model  = model;
    }
    NSURL *url = [NSURL URLWithString:self.model.coverimg];
    [self.imageView sd_setImageWithURL:url];
    self.titleLabel.text = self.model.name;
}

@end
